<!--导航栏-->
<div class="row-fluid">
    <div class="navbar no-margin">
        <div class="navbar-inner">
            <ul class="breadcrumb">
                <i class="icon-chevron-left hide-sidebar"><a href='#' title="Hide Sidebar" rel='tooltip'>&nbsp;</a></i>
                <i class="icon-chevron-right show-sidebar" style="display:none;"><a href='#' title="Show Sidebar"
                        rel='tooltip'>&nbsp;</a></i>
                <li>
                    <a href="#/star">首页</a>
                </li>
                <li>
                    <a href="#/star/cost/table_storage_health_score_list">存储健康分列表</a>
                </li>
                <li class="active">存储健康分详情</li>
            </ul>
        </div>
    </div>
</div>
<style>
    .red-span {
        color: #d44950;
        font-weight: bold;
    }

    .score-line-gap {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .final-score {
        font-weight: bold;
        font-size: 2rem;
    }
</style>
<div class="pull-convert-alert"></div>
<div class="container-fluid">
    <div style="margin: 10px">
        <div class="row">
            <div class="col-sm-12 col-md-12 main">
                <h3 class="sub-header" style="font-size: 3rem;text-align: center;">存储健康分详情</h3>
                <div class="col-sm-6 col-md-6" style="float:left;margin-top: 4rem;font-size: 2rem;">
                    <p class="score-line-gap">表名称：{{vm.p.tableName}}</p>
                    <p class="score-line-gap">业务时间：{{vm.p.dt}}</p>
                </div>
                <div style="float:right; padding-top:50px;">
                    <p><b> 健康分计算规则（采用100分制，扣分计算）</b></p>
                    <li>1.针对2GB以下的表直接给100分</li>
                    <li>2.表已经做了极限存储或人工审核过，也直接100分</li>
                    <li>3.产出时间距现在还不足10天，还未积累足够的访问情况信息，无法合理配置生命周期，会先给99分</li>
                    <li>4.30天内有访问过的非分区表，认为是有保留的必要的，给100分</li>
                    <li>5.健康分=按照建议保留的天数-实际保留的天数，但只要配置生命周期给20分</li>
                    <li>6.分区表未设置生命周期或非分区表30天无访问，直接给10分</li>
                </div>

                <div style="margin-left: 2rem;font-size: 2rem;width: 60%;display: inline-block;">
                    <div style="text-align: left;">
                        <p class="score-line-gap">
                            1.是否在白名单中：
                            <span ng-if="vm.p.isInWriteList==0" class="red-span">否</span>
                            <span ng-if="vm.p.isInWriteList==1" class="red-span">是</span>
                        </p>
                        <p class="score-line-gap" ng-if="vm.p.isInWriteList==0 && vm.p.isInMonthVisitNonPart==0">
                            2.是否是新表即产出距离现在还不足10天：
                            <span class="red-span" ng-if="vm.p.isProduceTimeInTenDay==0">否</span>
                            <span class="red-span" ng-if="vm.p.isProduceTimeInTenDay==1">是</span>
                        </p>
                        <p class="score-line-gap" ng-if="vm.p.isInWriteList==0">
                            3.是否是非分区表并且30天内有过访问：
                            <span class="red-span" ng-if="vm.p.isInMonthVisitNonPart==1">是</span>
                            <span class="red-span" ng-if="vm.p.isInMonthVisitNonPart==0">否</span>
                        </p>
                        <p class="score-line-gap" ng-if="vm.p.isInWriteList==0 && vm.p.isInMonthVisitNonPart==0">
                            4.是否是非分区表并且30天无访问：
                            <span class="red-span" ng-if="vm.p.isProduceTimeInTenDay==0">否</span></span>
                            <span class="red-span" ng-if="vm.p.isProduceTimeInTenDay==1">是, 扣分：-90</span>
                        </p>
                        <p class="score-line-gap" ng-if="vm.p.isInWriteList==0 && vm.p.isInMonthVisitNonPart==0">
                            5.是否分区表未设置生命周期：
                            <span class="red-span" ng-if="vm.p.isProduceTimeInTenDay==0">否</span>
                            <span class="red-span" ng-if="vm.p.isProduceTimeInTenDay==1">是，扣分：-90</span>

                        </p>
                        <p class="score-line-gap"
                            ng-if="vm.p.isInWriteList==0 && vm.p.isInMonthVisitNonPart==0 && vm.p.isProduceTimeInTenDay==0">
                            6.93天内最长访问跨度：<span class="red-span">{{vm.p.maxAccessDayInThreeMonth}}天</span>，
                            建议保留天数：<span class="red-span">{{vm.p.recommendLifecycle}}天</span>，
                            当前配置生命周期：<span class="red-span">{{vm.p.configLifecycle}}天</span>，
                            扣分：<span class="red-span">-{{vm.p.dropScore}}</span>
                        </p>
                        <p class="score-line-gap">
                            <span class="final-score">最终得分：</span>
                            <span class="red-span">{{vm.p.realHealthScore}}分</span>
                            (设置生命周期会有保底20分)
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>